-- GENERATED SPELL FOR [Lord Darkscythe] --


function spell0_10826(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10826', 584, 1)
end

function spell1_10826(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10826', 30301, 1)
end

function Sorts_10826(pUnit, Event)
local choix_sorts_10826 = math.random(0, 1)
if choix_sorts_10826 == 0 then
pUnit:RegisterEvent('spell0_10826', 1, 1)
end
if choix_sorts_10826 == 1 then
pUnit:RegisterEvent('spell1_10826', 1, 1)
end
end

function mob10826_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10826', math.random(1500, 3000), 1)
end

function mob10826_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10826_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10826_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10826, 1, 'mob10826_Action')
RegisterUnitEvent(10826, 2, 'mob10826_Leave')
RegisterUnitEvent(10826, 3, 'mob10826_Kill')
RegisterUnitEvent(10826, 4, 'mob10826_Die')
